#ifndef __PASSWD_H_
#define __PASSWD_H_

#include <stdio.h>
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <string.h>

void encrypt(const unsigned char *plaintext, int plaintext_len, const unsigned char *key,
             const unsigned char *iv, unsigned char *ciphertext);

void decrypt(const unsigned char *ciphertext, int ciphertext_len, const unsigned char *key,
             const unsigned char *iv, unsigned char *plaintext);        

#endif